<input class="layui-input" style="width:200px;" type="text" name="year" id="year1" placeholder="搜索年例:2018" value="{$year|default=''}"/>
<if condition="$list neq null">
<div style=" overflow:scroll; height:400px;margin-top:10px;">

	<div class="panel-group" id="accordion">
	<foreach name="list" item="v" key="k">

	<div class="panel panel-default">
		<div class="panel-heading">
			<h4 class="panel-title">
				<a data-toggle="collapse" data-parent="#accordion"
				   href="#collapse{$k}">
					{$v['time']}月份个人消费:&nbsp&nbsp 合计:<strong style="color:green">{$v['shouyi']}</strong>元&nbsp&nbsp<if condition="$userInfo.lev neq 1">（不包含会费）</if>
				</a>
			</h4>
		</div>

		<div id="collapse{$k}" class="panel-collapse collapse">
			<div class="panel-body">

			<table class="table table-hover table-bordered table-list" >
				<thead>
					<tr>
						<th>日期</th>
						<th>商品</th>
						<th>用户名</th>
						<th width="50">性别</th>
						<th width="65">手机号</th>
						<th>消费金额</th>
						<th>操作</th>
					</tr>
				</thead>

				<foreach name="v.sub" item="vo">

					<tr>
						<td>{$vo.create_time|date='Y-m-d H:i:s',###}</td>
						<td>{$vo.goods_name|default=''}</td>
						<td width="90">
							{$vo.name}
						</td>
						<td>
							<if condition="$vo.sex eq 1">
								男
								<else/>
								女
							</if>
						</td>
						<td>{$vo.phone}</td>
						<td>{$vo.money}元</td>
						<td>
							<a href="{:url('Register/delete',array('id'=>$vo['id']))}" class="js-ajax-delete">{:lang('DELETE')}</a>
						</td>
					</tr>

				</foreach>
			</table>

			</div>
		</div>
	</div>
	</foreach>
	</div>
	<ul class="pagination">{$page|default=''}</ul>
</div>
<else />
    <div style="margin-top: 10px;">
	    <span style="color: black;font-size: 28px;">本年度暂无消费记录</span>
    </div>
</if>
<script>
    $("#year1").blur(function(){
        var _this = $(this);
        getConsume(_this.val());
    });
</script>
